package com.htd.htdapmdmo;

import com.htd.htdapmcommon.enums.AlarmSendStatus;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import java.util.Date;

@Data
@Setter
@Getter
public class LogAnalyzeErrorRecord {
    private Long id;

    private String alarmsTitle;

    private String alarmsDetail;

    private Date createTime;

    private Date updateTime;

    private String productTypeCode;

    private String logSource;

    private Date happenTime;

    @Enumerated(EnumType.STRING)
    private AlarmSendStatus sendStatus = AlarmSendStatus.SEND_NO;

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}